package com.mall.implementation;

import com.mall.core.Item;
import com.mall.util.StringWrapper;

public class ItemImpl implements com.mall.core.Item {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int id = 0;

	@Override
	public StringWrapper getItemdescription() {
		return itemdescription;
	}


	@Override
	public void setItemdescription(StringWrapper itemdescription) {
		this.itemdescription = itemdescription;
	}


	@Override
	public StringWrapper getItemprice() {
		return itemprice;
	}


	@Override
	public void setItemprice(StringWrapper itemprice) {
		this.itemprice = itemprice;
	}


	@Override
	public StringWrapper getItemname() {
		return itemname;
	}

	@Override
	public void setItemname(StringWrapper itemname) {
		this.itemname = itemname;
	}


	@Override
	public boolean isRefurbnished() {
		return refurbnished;
	}


	@Override
	public void setRefurbnished(boolean refurbnished) {
		this.refurbnished = refurbnished;
	}


	@Override
	public boolean isNeww() {
		return neww;
	}


	@Override
	public void setNeww(boolean neww) {
		this.neww = neww;
	}


	@Override
	public boolean isDamaged() {
		return damaged;
	}


	@Override
	public void setDamaged(boolean damaged) {
		this.damaged = damaged;
	}

	private StringWrapper itemdescription;
	private StringWrapper itemprice;
	private StringWrapper itemname;
	private boolean refurbnished;
	private boolean neww;
	private boolean damaged;
	private int qunatity;



	@Override
	public int getId() {

		return this.id;
	}



	@Override
	public void setId(int id) {
		this.id = id;

	}


	@Override
	public boolean equals(Item item) {

		return this.id == item.getId();
	}

	@Override
	public int getQuantity() {

		return qunatity;
	}

	@Override
	public void setQuantity(int quantity) {
	
		this.qunatity=quantity;
	}
}
